System.Xml.XmlDocument Represents an attribute. Valid and default values for the attribute are defined in a document type definition (DTD) or schema. Initializes a new instance of the class. The namespace prefix. The local name of the attribute. The namespace uniform resource identifier (URI). The parent XML document. Adds the specified node to the end of the list of child nodes, of this node. The added. The to add. This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.This node is read-only. Gets the base Uniform Resource Identifier (URI) of the node. The location from which the node was loaded or String.Empty if the node has no base URI. Attribute nodes have the same base URI as their owner element. If an attribute node does not have an owner element, BaseURI returns String.Empty. Creates a duplicate of this node. The duplicate node. true to recursively clone the subtree under the specified node; false to clone only the node itself Sets the concatenated values of the node and all its children. The concatenated values of the node and all its children. For attribute nodes, this property has the same functionality as the property. Sets the value of the attribute. The attribute value. The XML specified when setting this property is not well-formed. Inserts the specified node immediately after the specified reference node. The inserted. The to insert. The that is the reference node. The is placed after the . This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.The is not a child of this node.This node is read-only. Inserts the specified node immediately before the specified reference node. The inserted. The to insert. The that is the reference node. The is placed before this node. The current node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.The is not a child of this node.This node is read-only. Gets the local name of the node. The name of the attribute node with the prefix removed. In the following example <book bk:genre= 'novel'>, the LocalName of the attribute is genre. Gets the qualified name of the node. The qualified name of the attribute node. Gets the namespace URI of this node. The namespace URI of this node. If the attribute is not explicitly given a namespace, this property returns String.Empty. Gets the type of the current node. The node type for XmlAttribute nodes is XmlNodeType.Attribute. Gets the to which this node belongs. An XML document to which this node belongs. Gets the to which the attribute belongs. The XmlElement that the attribute belongs to or null if this attribute is not part of an XmlElement. Gets the parent of this node. For XmlAttribute nodes, this property always returns null. For XmlAttribute nodes, this property always returns null. Gets or sets the namespace prefix of this node. The namespace prefix of this node. If there is no prefix, this property returns String.Empty. This node is read-only. The specified prefix contains an invalid character.The specified prefix is malformed.The namespaceURI of this node is null.The specified prefix is "xml", and the namespaceURI of this node is different from "http://www.w3.org/XML/1998/namespace".This node is an attribute, the specified prefix is "xmlns", and the namespaceURI of this node is different from "http://www.w3.org/2000/xmlns/".This node is an attribute, and the qualifiedName of this node is "xmlns" [Namespaces]. Adds the specified node to the beginning of the list of child nodes for this node. The added. The to add. If it is an , the entire contents of the document fragment are moved into the child list of this node. This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.This node is read-only. Removes the specified child node. The removed. The to remove. The is not a child of this node. Or this node is read-only. Replaces the child node specified with the new child node specified. The replaced. The new child . The to replace. This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.This node is read-only.The is not a child of this node. Gets a value indicating whether the attribute value was explicitly set. true if this attribute was explicitly given a value in the original instance document; otherwise, false. A value of false indicates that the value of the attribute came from the DTD. Gets or sets the value of the node. The value returned depends on the of the node. For XmlAttribute nodes, this property is the value of attribute. The node is read-only and a set operation is called. Saves all the children of the node to the specified . The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Represents a collection of attributes that can be accessed by name or index. Inserts the specified attribute as the last node in the collection. The XmlAttribute to append to the collection. The to insert. was created from a document different from the one that created this collection. Copies all the objects from this collection into the given array. The array that is the destination of the objects copied from this collection. The index in the array where copying begins. Inserts the specified attribute immediately after the specified reference attribute. The XmlAttribute to insert into the collection. The to insert. The that is the reference attribute. is placed after the . The was created from a document different from the one that created this collection. Or the is not a member of this collection. Inserts the specified attribute immediately before the specified reference attribute. The XmlAttribute to insert into the collection. The to insert. The that is the reference attribute. is placed before the . The was created from a document different from the one that created this collection. Or the is not a member of this collection. Gets the attribute with the specified index. The at the specified index. The index of the attribute. The index being passed in is out of range. Gets the attribute with the specified name. The with the specified name. If the attribute does not exist, this property returns null. The qualified name of the attribute. Gets the attribute with the specified local name and namespace Uniform Resource Identifier (URI). The with the specified local name and namespace URI. If the attribute does not exist, this property returns null. The local name of the attribute. The namespace URI of the attribute. Inserts the specified attribute as the first node in the collection. The XmlAttribute added to the collection. The to insert. Removes the specified attribute from the collection. The node removed or null if it is not found in the collection. The to remove. Removes all attributes from the collection. Removes the attribute corresponding to the specified index from the collection. Returns null if there is no attribute at the specified index. The index of the node to remove. The first node has index 0. Adds a using its property If the replaces an existing node with the same name, the old node is returned; otherwise, the added node is returned. An attribute node to store in this collection. The node will later be accessible using the name of the node. If a node with that name is already present in the collection, it is replaced by the new one; otherwise, the node is appended to the end of the collection. was created from a different than the one that created this collection.This XmlAttributeCollection is read-only. is an that is already an attribute of another object. To re-use attributes in other elements, you must clone the XmlAttribute objects you want to re-use. For a description of this member, see . The array that is the destination of the objects copied from this collection. The index in the array where copying begins. For a description of this member, see . Returns an int that contains the count of the attributes. For a description of this member, see . Returns true if the collection is synchronized. For a description of this member, see . Returns the that is the root of the collection. Represents a CDATA section. Initializes a new instance of the class. that contains character data. object. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Because CDATA nodes do not have children, regardless of the parameter setting, the cloned node will always include the data content. Gets the local name of the node. For CDATA nodes, the local name is #cdata-section. Gets the qualified name of the node. For CDATA nodes, the name is #cdata-section. Gets the type of the current node. The node type. For CDATA nodes, the value is XmlNodeType.CDATA. Gets the text node that immediately precedes this node. Returns . Saves the children of the node to the specified . The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Provides text manipulation methods that are used by several classes. Initializes a new instance of the class. String that contains character data to be added to document. to contain character data. Appends the specified string to the end of the character data of the node. The string to insert into the existing string. Contains the data of the node. The data of the node. Removes a range of characters from the node. The position within the string to start deleting. The number of characters to delete. Inserts the specified string at the specified character offset. The position within the string to insert the supplied string data. The string data that is to be inserted into the existing string. Gets the length of the data, in characters. The length, in characters, of the string in the property. The length may be zero; that is, CharacterData nodes can be empty. Replaces the specified number of characters starting at the specified offset with the specified string. The position within the string to start replacing. The number of characters to replace. The new data that replaces the old string data. Retrieves a substring of the full string from the specified range. The substring corresponding to the specified range. The position within the string to start retrieving. An offset of zero indicates the starting point is at the start of the data. The number of characters to retrieve. Gets or sets the value of the node. The value of the node. Node is read-only. Represents the content of an XML comment. Initializes a new instance of the class. The content of the comment element. The parent XML document. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Because comment nodes do not have children, the cloned node always includes the text content, regardless of the parameter setting. Gets the local name of the node. For comment nodes, the value is #comment. Gets the qualified name of the node. For comment nodes, the value is #comment. Gets the type of the current node. For comment nodes, the value is XmlNodeType.Comment. Saves all the children of the node to the specified . Because comment nodes do not have children, this method has no effect. The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Represents the XML declaration node <?xml version='1.0'...?>. Initializes a new instance of the class. The XML version; see the property. The encoding scheme; see the property. Indicates whether the XML document depends on an external DTD; see the property. The parent XML document. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Because XmlDeclaration nodes do not have children, the cloned node always includes the data value, regardless of the parameter setting. Gets or sets the encoding level of the XML document. The valid character encoding name. The most commonly supported character encoding names for XML are the following: Category Encoding Names Unicode UTF-8, UTF-16 ISO 10646 ISO-10646-UCS-2, ISO-10646-UCS-4 ISO 8859 ISO-8859-n (where "n" is a digit from 1 to 9) JIS X-0208-1997 ISO-2022-JP, Shift_JIS, EUC-JP This value is optional. If a value is not set, this property returns String.Empty.If an encoding attribute is not included, UTF-8 encoding is assumed when the document is written or saved out. Gets or sets the concatenated values of the XmlDeclaration. The concatenated values of the XmlDeclaration (that is, everything between <?xml and ?>). Gets the local name of the node. For XmlDeclaration nodes, the local name is xml. Gets the qualified name of the node. For XmlDeclaration nodes, the name is xml. Gets the type of the current node. For XmlDeclaration nodes, this value is XmlNodeType.XmlDeclaration. Gets or sets the value of the standalone attribute. Valid values are yes if all entity declarations required by the XML document are contained within the document or no if an external document type definition (DTD) is required. If a standalone attribute is not present in the XML declaration, this property returns String.Empty. Gets or sets the value of the XmlDeclaration. The contents of the XmlDeclaration (that is, everything between <?xml and ?>). Gets the XML version of the document. The value is always 1.0. Saves the children of the node to the specified . Because XmlDeclaration nodes do not have children, this method has no effect. The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Represents an XML document.For more information, see the Remarks section. Initializes a new instance of the class. Initializes a new instance of the XmlDocument class with the specified . The XmlImplementation to use. Initializes a new instance of the XmlDocument class with the specified . The XmlNameTable to use. Gets the base URI of the current node. The location from which the node was loaded. Creates a duplicate of this node. The cloned XmlDocument node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Creates an with the specified . The new XmlAttribute. The qualified name of the attribute. If the name contains a colon, the property reflects the part of the name preceding the first colon and the property reflects the part of the name following the first colon. The remains empty unless the prefix is a recognized built-in prefix such as xmlns. In this case NamespaceURI has a value of http://www.w3.org/2000/xmlns/. Creates an with the specified qualified name and . The new XmlAttribute. The qualified name of the attribute. If the name contains a colon then the property will reflect the part of the name preceding the colon and the property will reflect the part of the name after the colon. The namespaceURI of the attribute. If the qualified name includes a prefix of xmlns, then this parameter must be http://www.w3.org/2000/xmlns/. Creates an with the specified , , and . The new XmlAttribute. The prefix of the attribute (if any). String.Empty and null are equivalent. The local name of the attribute. The namespace URI of the attribute (if any). String.Empty and null are equivalent. If is xmlns, then this parameter must be http://www.w3.org/2000/xmlns/; otherwise an exception is thrown. Creates an containing the specified data. The new XmlCDataSection. The content of the new XmlCDataSection. Creates an containing the specified data. The new XmlComment. The content of the new XmlComment. Creates an . The new XmlDocumentFragment. Creates an element with the specified name. The new XmlElement. The qualified name of the element. If the name contains a colon then the property reflects the part of the name preceding the colon and the property reflects the part of the name after the colon. The qualified name cannot include a prefix of'xmlns'. Creates an with the qualified name and . The new XmlElement. The qualified name of the element. If the name contains a colon then the property will reflect the part of the name preceding the colon and the property will reflect the part of the name after the colon. The qualified name cannot include a prefix of'xmlns'. The namespace URI of the element. Creates an element with the specified , , and . The new . The prefix of the new element (if any). String.Empty and null are equivalent. The local name of the new element. The namespace URI of the new element (if any). String.Empty and null are equivalent. Creates an with the specified node type, , and . The new XmlNode. String version of the of the new node. This parameter must be one of the values listed in the table below. The qualified name of the new node. If the name contains a colon, it is parsed into and components. The namespace URI of the new node. The name was not provided and the XmlNodeType requires a name; or is not one of the strings listed below. Creates an with the specified , , and . The new XmlNode. The XmlNodeType of the new node. The qualified name of the new node. If the name contains a colon then it is parsed into and components. The namespace URI of the new node. The name was not provided and the XmlNodeType requires a name. Creates a with the specified , , , and . The new XmlNode. The XmlNodeType of the new node. The prefix of the new node. The local name of the new node. The namespace URI of the new node. The name was not provided and the XmlNodeType requires a name. Creates an with the specified name and data. The new XmlProcessingInstruction. The name of the processing instruction. The data for the processing instruction. Creates an node. A new XmlSignificantWhitespace node. The string must contain only the following characters &#20; &#10; &#13; and &#9; Creates an with the specified text. The new XmlText node. The text for the Text node. Creates an node. A new XmlWhitespace node. The string must contain only the following characters &#20; &#10; &#13; and &#9; Creates an node with the specified values. The new XmlDeclaration node. The version must be "1.0". The value of the encoding attribute. This is the encoding that is used when you save the to a file or a stream; therefore, it must be set to a string supported by the class, otherwise fails. If this is null or String.Empty, the Save method does not write an encoding attribute on the XML declaration and therefore the default encoding, UTF-8, is used.Note: If the XmlDocument is saved to either a or an , this encoding value is discarded. Instead, the encoding of the TextWriter or the XmlTextWriter is used. This ensures that the XML written out can be read back using the correct encoding. The value must be either "yes" or "no". If this is null or String.Empty, the Save method does not write a standalone attribute on the XML declaration. The values of or are something other than the ones specified above. Gets the root for the document. The XmlElement that represents the root of the XML document tree. If no root exists, null is returned. Returns an containing a list of all descendant elements that match the specified . An containing a list of all matching nodes. If no nodes match , the returned collection will be empty. The qualified name to match. It is matched against the Name property of the matching node. The special value "*" matches all tags. Returns an containing a list of all descendant elements that match the specified and . An containing a list of all matching nodes. If no nodes match the specified and , the returned collection will be empty. The LocalName to match. The special value "*" matches all tags. NamespaceURI to match. Gets the object for the current document. The XmlImplementation object for the current document. Imports a node from another document to the current document. The imported . The node being imported. true to perform a deep clone; otherwise, false. Calling this method on a node type which cannot be imported. Throws an in all cases. The values of the node and all its child nodes. In all cases. Gets or sets the markup representing the children of the current node. The markup of the children of the current node. The XML specified when setting this property is not well-formed. Gets a value indicating whether the current node is read-only. true if the current node is read-only; otherwise false. XmlDocument nodes always return false. Loads the XML document from the specified stream. The stream containing the XML document to load. There is a load or parse error in the XML. In this case, a is raised. Loads the XML document from the specified . The TextReader used to feed the XML data into the document. There is a load or parse error in the XML. In this case, the document remains empty. Loads the XML document from the specified . The XmlReader used to feed the XML data into the document. There is a load or parse error in the XML. In this case, the document remains empty. Loads the XML document from the specified string. String containing the XML document to load. There is a load or parse error in the XML. In this case, the document remains empty. Gets the local name of the node. For XmlDocument nodes, the local name is #document. Gets the qualified name of the node. For XmlDocument nodes, the name is #document. Gets the associated with this implementation. An XmlNameTable enabling you to get the atomized version of a string within the document. Occurs when the of a node belonging to this document has been changed. Occurs when the of a node belonging to this document is about to be changed. Occurs when a node belonging to this document has been inserted into another node. Occurs when a node belonging to this document is about to be inserted into another node. Occurs when a node belonging to this document has been removed from its parent. Occurs when a node belonging to this document is about to be removed from the document. Gets the type of the current node. The node type. For XmlDocument nodes, this value is XmlNodeType.Document. Gets the to which the current node belongs. For XmlDocument nodes ( equals XmlNodeType.Document), this property always returns null. Gets the parent node of this node (for nodes that can have parents). Always returns null. Gets or sets a value indicating whether to preserve white space in element content. true to preserve white space; otherwise false. The default is false. Creates an object based on the information in the . The reader must be positioned on a node or attribute. The new XmlNode or null if no more nodes exist. The XML source The reader is positioned on a node type that does not translate to a valid DOM node (for example, EndElement or EndEntity). Saves the XML document to the specified stream. The stream to which you want to save. The operation would not result in a well formed XML document (for example, no document element or duplicate XML declarations). Saves the XML document to the specified . The TextWriter to which you want to save. The operation would not result in a well formed XML document (for example, no document element or duplicate XML declarations). Saves the XML document to the specified . The XmlWriter to which you want to save. The operation would not result in a well formed XML document (for example, no document element or duplicate XML declarations). Saves all the children of the XmlDocument node to the specified . The XmlWriter to which you want to save. Saves the XmlDocument node to the specified . The XmlWriter to which you want to save. Represents a lightweight object that is useful for tree insert operations. Initializes a new instance of the class. The XML document that is the source of the fragment. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Gets or sets the markup representing the children of this node. The markup of the children of this node. The XML specified when setting this property is not well-formed. Gets the local name of the node. For XmlDocumentFragment nodes, the local name is #document-fragment. Gets the qualified name of the node. For XmlDocumentFragment, the name is #document-fragment. Gets the type of the current node. For XmlDocumentFragment nodes, this value is XmlNodeType.DocumentFragment. Gets the to which this node belongs. The XmlDocument to which this node belongs. Gets the parent of this node (for nodes that can have parents). The parent of this node.For XmlDocumentFragment nodes, this property is always null. Saves all the children of the node to the specified . The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Represents an element. Initializes a new instance of the class. The namespace prefix; see the property. The local name; see the property. The namespace URI; see the property. The parent XML document. Gets an containing the list of attributes for this node. containing the list of attributes for this node. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself (and its attributes if the node is an XmlElement). Returns the value for the attribute with the specified name. The value of the specified attribute. An empty string is returned if a matching attribute is not found or if the attribute does not have a specified or default value. The name of the attribute to retrieve. This is a qualified name. It is matched against the Name property of the matching node. Returns the value for the attribute with the specified local name and namespace URI. The value of the specified attribute. An empty string is returned if a matching attribute is not found or if the attribute does not have a specified or default value. The local name of the attribute to retrieve. The namespace URI of the attribute to retrieve. Returns the XmlAttribute with the specified name. The specified XmlAttribute or null if a matching attribute was not found. The name of the attribute to retrieve. This is a qualified name. It is matched against the Name property of the matching node. Returns the with the specified local name and namespace URI. The specified XmlAttribute or null if a matching attribute was not found. The local name of the attribute. The namespace URI of the attribute. Returns an containing a list of all descendant elements that match the specified . An containing a list of all matching nodes. The list is empty if there are no matching nodes. The name tag to match. This is a qualified name. It is matched against the Name property of the matching node. The asterisk (*) is a special value that matches all tags. Returns an containing a list of all descendant elements that match the specified and . An containing a list of all matching nodes. The list is empty if there are no matching nodes. The local name to match. The asterisk (*) is a special value that matches all tags. The namespace URI to match. Determines whether the current node has an attribute with the specified name. true if the current node has the specified attribute; otherwise, false. The name of the attribute to find. This is a qualified name. It is matched against the Name property of the matching node. Determines whether the current node has an attribute with the specified local name and namespace URI. true if the current node has the specified attribute; otherwise, false. The local name of the attribute to find. The namespace URI of the attribute to find. Gets a boolean value indicating whether the current node has any attributes. true if the current node has attributes; otherwise, false. Gets or sets the concatenated values of the node and all its children. The concatenated values of the node and all its children. Gets or sets the markup representing just the children of this node. The markup of the children of this node. The XML specified when setting this property is not well-formed. Gets or sets the tag format of the element. Returns true if the element is to be serialized in the short tag format "<item/>"; false for the long format "<item></item>".When setting this property, if set to true, the children of the element are removed and the element is serialized in the short tag format. If set to false, the value of the property is changed (regardless of whether or not the element has content); if the element is empty, it is serialized in the long format.This property is a Microsoft extension to the Document Object Model (DOM). Gets the local name of the current node. The name of the current node with the prefix removed. For example, LocalName is book for the element <bk:book>. Gets the qualified name of the node. The qualified name of the node. For XmlElement nodes, this is the tag name of the element. Gets the namespace URI of this node. The namespace URI of this node. If there is no namespace URI, this property returns String.Empty. Gets the immediately following this element. The XmlNode immediately following this element. Gets the type of the current node. The node type. For XmlElement nodes, this value is XmlNodeType.Element. Gets the to which this node belongs. The XmlDocument to which this element belongs. Gets or sets the namespace prefix of this node. The namespace prefix of this node. If there is no prefix, this property returns String.Empty. This node is read-only The specified prefix contains an invalid character.The specified prefix is malformed.The namespaceURI of this node is null.The specified prefix is "xml" and the namespaceURI of this node is different from http://www.w3.org/XML/1998/namespace. Removes all specified attributes and children of the current node. Default attributes are not removed. Removes all specified attributes from the element. Default attributes are not removed. Removes an attribute by name. The name of the attribute to remove.This is a qualified name. It is matched against the Name property of the matching node. The node is read-only. Removes an attribute with the specified local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced). The local name of the attribute to remove. The namespace URI of the attribute to remove. The node is read-only. Removes the attribute node with the specified index from the element. (If the removed attribute has a default value, it is immediately replaced). The attribute node removed or null if there is no node at the given index. The index of the node to remove. The first node has index 0. Removes the specified by the local name and namespace URI. (If the removed attribute has a default value, it is immediately replaced). The removed XmlAttribute or null if the XmlElement does not have a matching attribute node. The local name of the attribute. The namespace URI of the attribute. This node is read-only. Removes the specified . The removed XmlAttribute or null if is not an attribute node of the XmlElement. The XmlAttribute node to remove. If the removed attribute has a default value, it is immediately replaced. This node is read-only. Sets the value of the attribute with the specified name. The name of the attribute to create or alter. This is a qualified name. If the name contains a colon it is parsed into prefix and local name components. The value to set for the attribute. The specified name contains an invalid character. The node is read-only. Sets the value of the attribute with the specified local name and namespace URI. The attribute value. The local name of the attribute. The namespace URI of the attribute. The value to set for the attribute. Adds the specified . The XmlAttribute to add. The local name of the attribute. The namespace URI of the attribute. Adds the specified . If the attribute replaces an existing attribute with the same name, the old XmlAttribute is returned; otherwise, null is returned. The XmlAttribute node to add to the attribute collection for this element. The was created from a different document than the one that created this node. Or this node is read-only. The is already an attribute of another XmlElement object. You must explicitly clone XmlAttribute nodes to re-use them in other XmlElement objects. Saves all the children of the node to the specified . The XmlWriter to which you want to save. Saves the current node to the specified . The XmlWriter to which you want to save. Defines the context for a set of objects. Initializes a new instance of the class. Initializes a new instance of the class with the specified. An object. Creates a new . The new XmlDocument object. Tests if the Document Object Model (DOM) implementation implements a specific feature. true if the feature is implemented in the specified version; otherwise, false.The following table shows the combinations that cause HasFeature to return true.strFeature strVersion XML 1.0 XML 2.0 The package name of the feature to test. This name is not case-sensitive. This is the version number of the package name to test. If the version is not specified (null), supporting any version of the feature causes the method to return true. Gets the node immediately preceding or following this node. Gets the node immediately following this node. The immediately following this node or null if one does not exist. Gets the node immediately preceding this node. The preceding or null if one does not exist. Represents a collection of nodes that can be accessed by name or index. Gets the number of nodes in the XmlNamedNodeMap. The number of nodes. Provides support for the "foreach" style iteration over the collection of nodes in the XmlNamedNodeMap. An enumerator object. Retrieves an specified by name. An XmlNode with the specified name or null if a matching node is not found. The qualified name of the node to retrieve. It is matched against the property of the matching node. Retrieves a node with the matching and . An with the matching local name and namespace URI or null if a matching node was not found. The local name of the node to retrieve. The namespace Uniform Resource Identifier (URI) of the node to retrieve. Retrieves the node at the specified index in the XmlNamedNodeMap. The at the specified index. If is less than 0 or greater than or equal to the property, null is returned. The index position of the node to retrieve from the XmlNamedNodeMap. The index is zero-based; therefore, the index of the first node is 0 and the index of the last node is -1. Removes the node from the XmlNamedNodeMap. The XmlNode removed from this XmlNamedNodeMap or null if a matching node was not found. The qualified name of the node to remove. The name is matched against the property of the matching node. Removes a node with the matching and . The removed or null if a matching node was not found. The local name of the node to remove. The namespace URI of the node to remove. Adds an using its property. If the replaces an existing node with the same name, the old node is returned; otherwise, null is returned. An XmlNode to store in the XmlNamedNodeMap. If a node with that name is already present in the map, it is replaced by the new one. The was created from a different than the one that created the XmlNamedNodeMap; or the XmlNamedNodeMap is read-only. Represents a single node in the XML document. Adds the specified node to the end of the list of child nodes, of this node. The node added. The node to add. All the contents of the node to be added are moved into the specified location. This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.This node is read-only. Gets an containing the attributes of this node. An XmlAttributeCollection containing the attributes of the node.If the node is of type XmlNodeType.Element, the attributes of the node are returned. Otherwise, this property returns null. Gets the base URI of the current node. The location from which the node was loaded or String.Empty if the node has no base URI. Gets all the child nodes of the node. An object that contains all the child nodes of the node.If there are no child nodes, this property returns an empty . Creates a duplicate of the node, when overridden in a derived class. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Calling this method on a node type that cannot be cloned. Gets the first child of the node. The first child of the node. If there is no such node, null is returned. Get an enumerator that iterates through the child nodes in the current node. An object that can be used to iterate through the child nodes in the current node. Looks up the closest xmlns declaration for the given prefix that is in scope for the current node and returns the namespace URI in the declaration. The namespace URI of the specified prefix. The prefix whose namespace URI you want to find. Looks up the closest xmlns declaration for the given namespace URI that is in scope for the current node and returns the prefix defined in that declaration. The prefix for the specified namespace URI. The namespace URI whose prefix you want to find. Gets a value indicating whether this node has any child nodes. true if the node has child nodes; otherwise, false. Gets or sets the concatenated values of the node and all its child nodes. The concatenated values of the node and all its child nodes. Gets or sets the markup representing only the child nodes of this node. The markup of the child nodes of this node.NoteInnerXml does not return default attributes. Setting this property on a node that cannot have child nodes. The XML specified when setting this property is not well-formed. Inserts the specified node immediately after the specified reference node. The node being inserted. The XmlNode to insert. The XmlNode that is the reference node. The is placed after the . This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.The is not a child of this node.This node is read-only. Inserts the specified node immediately before the specified reference node. The node being inserted. The XmlNode to insert. The XmlNode that is the reference node. The is placed before this node. The current node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.The is not a child of this node.This node is read-only. Gets a value indicating whether the node is read-only. true if the node is read-only; otherwise false. Gets the first child element with the specified . The first that matches the specified name. It returns a null reference (Nothing in Visual Basic) if there is no match. The qualified name of the element to retrieve. Gets the first child element with the specified and . The first with the matching and . . It returns a null reference (Nothing in Visual Basic) if there is no match. The local name of the element. The namespace URI of the element. Gets the last child of the node. The last child of the node. If there is no such node, null is returned. Gets the local name of the node, when overridden in a derived class. The name of the node with the prefix removed. For example, LocalName is book for the element <bk:book>.The name returned is dependent on the of the node: Type Name Attribute The local name of the attribute. CDATA #cdata-section Comment #comment Document #document DocumentFragment #document-fragment DocumentType The document type name. Element The local name of the element. Entity The name of the entity. EntityReference The name of the entity referenced. Notation The notation name. ProcessingInstruction The target of the processing instruction. Text #text Whitespace #whitespace SignificantWhitespace #significant-whitespace XmlDeclaration #xml-declaration Gets the qualified name of the node, when overridden in a derived class. The qualified name of the node. The name returned is dependent on the of the node: Type Name Attribute The qualified name of the attribute. CDATA #cdata-section Comment #comment Document #document DocumentFragment #document-fragment DocumentType The document type name. Element The qualified name of the element. Entity The name of the entity. EntityReference The name of the entity referenced. Notation The notation name. ProcessingInstruction The target of the processing instruction. Text #text Whitespace #whitespace SignificantWhitespace #significant-whitespace XmlDeclaration #xml-declaration Gets the namespace URI of this node. The namespace URI of this node. If there is no namespace URI, this property returns String.Empty. Gets the node immediately following this node. The next XmlNode. If there is no next node, null is returned. Gets the type of the current node, when overridden in a derived class. One of the values. Puts all XmlText nodes in the full depth of the sub-tree underneath this XmlNode into a "normal" form where only markup (that is, tags, comments, processing instructions, CDATA sections, and entity references) separates XmlText nodes, that is, there are no adjacent XmlText nodes. Gets the markup containing this node and all its child nodes. The markup containing this node and all its child nodes.NoteOuterXml does not return default attributes. Gets the to which this node belongs. The to which this node belongs.If the node is an (NodeType equals XmlNodeType.Document), this property returns null. Gets the parent of this node (for nodes that can have parents). The XmlNode that is the parent of the current node. If a node has just been created and not yet added to the tree, or if it has been removed from the tree, the parent is null. For all other nodes, the value returned depends on the of the node. The following table describes the possible return values for the ParentNode property.NodeType Return Value of ParentNode Attribute, Document, DocumentFragment, Entity, Notation Returns null; these nodes do not have parents. CDATA Returns the element or entity reference containing the CDATA section. Comment Returns the element, entity reference, document type, or document containing the comment. DocumentType Returns the document node. Element Returns the parent node of the element. If the element is the root node in the tree, the parent is the document node. EntityReference Returns the element, attribute, or entity reference containing the entity reference. ProcessingInstruction Returns the document, element, document type, or entity reference containing the processing instruction. Text Returns the parent element, attribute, or entity reference containing the text node. Gets or sets the namespace prefix of this node. The namespace prefix of this node. For example, Prefix is bk for the element <bk:book>. If there is no prefix, this property returns String.Empty. This node is read-only. The specified prefix contains an invalid character.The specified prefix is malformed.The specified prefix is "xml" and the namespaceURI of this node is different from "http://www.w3.org/XML/1998/namespace".This node is an attribute and the specified prefix is "xmlns" and the namespaceURI of this node is different from "http://www.w3.org/2000/xmlns/ ".This node is an attribute and the qualifiedName of this node is "xmlns". Adds the specified node to the beginning of the list of child nodes for this node. The node added. The node to add. All the contents of the node to be added are moved into the specified location. This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.This node is read-only. Gets the node immediately preceding this node. The preceding XmlNode. If there is no preceding node, null is returned. Gets the text node that immediately precedes this node. Returns . Removes all the child nodes and/or attributes of the current node. Removes specified child node. The node removed. The node being removed. The is not a child of this node. Or this node is read-only. Replaces the child node with node. The node replaced. The new node to put in the child list. The node being replaced in the list. This node is of a type that does not allow child nodes of the type of the node.The is an ancestor of this node. The was created from a different document than the one that created this node.This node is read-only.The is not a child of this node. Tests if the DOM implementation implements a specific feature. true if the feature is implemented in the specified version; otherwise, false. The following table describes the combinations that return true.Feature Version XML 1.0 XML 2.0 The package name of the feature to test. This name is not case-sensitive. The version number of the package name to test. If the version is not specified (null), supporting any version of the feature causes the method to return true. For a description of this member, see . Returns an enumerator for the collection. Gets or sets the value of the node. The value returned depends on the of the node: Type Value Attribute The value of the attribute. CDATASection The content of the CDATA Section. Comment The content of the comment. Document null. DocumentFragment null. DocumentType null. Element null. You can use the or properties to access the value of the element node. Entity null. EntityReference null. Notation null. ProcessingInstruction The entire content excluding the target. Text The content of the text node. SignificantWhitespace The white space characters. White space can consist of one or more space characters, carriage returns, line feeds, or tabs. Whitespace The white space characters. White space can consist of one or more space characters, carriage returns, line feeds, or tabs. XmlDeclaration The content of the declaration (that is, everything between <?xml and ?>). Setting the value of a node that is read-only. Setting the value of a node that is not supposed to have a value (for example, an Element node). Saves all the child nodes of the node to the specified , when overridden in a derived class. The XmlWriter to which you want to save. Saves the current node to the specified , when overridden in a derived class. The XmlWriter to which you want to save. Specifies the type of node change. A node value is being changed. A node is being inserted in the tree. A node is being removed from the tree. Provides data for the , , , , and events. Initializes a new instance of the class. The that generated the event. The old parent of the that generated the event. The new parent of the that generated the event. The old value of the that generated the event. The new value of the that generated the event. The . Gets a value indicating what type of node change event is occurring. An XmlNodeChangedAction value describing the node change event.XmlNodeChangedAction Value Description Insert A node has been or will be inserted. Remove A node has been or will be removed. Change A node has been or will be changed. NoteThe Action value does not differentiate between when the event occurred (before or after). You can create separate event handlers to handle both instances. Gets the value of the after the operation completes. The value of the ParentNode after the operation completes. This property returns null if the node is being removed.NoteFor attribute nodes this property returns the . Gets the new value of the node. The new value of the node. This property returns null if the node is neither an attribute nor a text node, or if the node is being removed.If called in a event, NewValue returns the value of the node if the change is successful. If called in a event, NewValue returns the current value of the node. Gets the that is being added, removed or changed. The XmlNode that is being added, removed or changed; this property never returns null. Gets the value of the before the operation began. The value of the ParentNode before the operation began. This property returns null if the node did not have a parent.NoteFor attribute nodes this property returns the . Gets the original value of the node. The original value of the node. This property returns null if the node is neither an attribute nor a text node, or if the node is being inserted.If called in a event, OldValue returns the current value of the node that will be replaced if the change is successful. If called in a event, OldValue returns the value of node prior to the change. Represents the method that handles , , , , and events. The source of the event. An containing the event data. Represents an ordered collection of nodes. Initializes a new instance of the class. Gets the number of nodes in the XmlNodeList. The number of nodes in the XmlNodeList. Gets an enumerator that iterates through the collection of nodes. An enumerator used to iterate through the collection of nodes. Retrieves a node at the given index. The with the specified index in the collection. If is greater than or equal to the number of nodes in the list, this returns null. The zero-based index into the list of nodes. Gets a node at the given index. The with the specified index in the collection. If index is greater than or equal to the number of nodes in the list, this returns null. The zero-based index into the list of nodes. Disposes resources in the node list privately. Releases all resources used by the class. Represents a processing instruction, which XML defines to keep processor-specific information in the text of the document. Initializes a new instance of the class. The target of the processing instruction; see the property. The content of the instruction; see the property. The parent XML document. Creates a duplicate of this node. The duplicate node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Gets or sets the content of the processing instruction, excluding the target. The content of the processing instruction, excluding the target. Gets or sets the concatenated values of the node and all its children. The concatenated values of the node and all its children. Gets the local name of the node. For processing instruction nodes, this property returns the target of the processing instruction. Gets the qualified name of the node. For processing instruction nodes, this property returns the target of the processing instruction. Gets the type of the current node. For XmlProcessingInstruction nodes, this value is XmlNodeType.ProcessingInstruction. Gets the target of the processing instruction. The target of the processing instruction. Gets or sets the value of the node. The entire content of the processing instruction, excluding the target. Node is read-only. Saves all the children of the node to the specified . Because ProcessingInstruction nodes do not have children, this method has no effect. The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Represents white space between markup in a mixed content node or white space within an xml:space= 'preserve' scope. This is also referred to as significant white space. Initializes a new instance of the class. The white space characters of the node. The object. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. For significant white space nodes, the cloned node always includes the data value, regardless of the parameter setting. Gets the local name of the node. For XmlSignificantWhitespace nodes, this property returns #significant-whitespace. Gets the qualified name of the node. For XmlSignificantWhitespace nodes, this property returns #significant-whitespace. Gets the type of the current node. For XmlSignificantWhitespace nodes, this value is XmlNodeType.SignificantWhitespace. Gets the parent of the current node. The parent node of the current node. Gets the text node that immediately precedes this node. Returns . Gets or sets the value of the node. The white space characters found in the node. Setting Value to invalid white space characters. Saves all the children of the node to the specified . The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Represents the text content of an element or attribute. Initializes a new instance of the class. The content of the node; see the property. The parent XML document. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. Gets the local name of the node. For text nodes, this property returns #text. Gets the qualified name of the node. For text nodes, this property returns #text. Gets the type of the current node. For text nodes, this value is XmlNodeType.Text. Gets the text node that immediately precedes this node. Returns . Splits the node into two nodes at the specified offset, keeping both in the tree as siblings. The new node. The offset at which to split the node. Gets or sets the value of the node. The content of the text node. Saves all the children of the node to the specified . XmlText nodes do not have children, so this method has no effect. The XmlWriter to which you want to save. Saves the node to the specified . The XmlWriter to which you want to save. Represents white space in element content. Initializes a new instance of the class. The white space characters of the node. The object. Creates a duplicate of this node. The cloned node. true to recursively clone the subtree under the specified node; false to clone only the node itself. For white space nodes, the cloned node always includes the data value, regardless of the parameter setting. Gets the local name of the node. For XmlWhitespace nodes, this property returns #whitespace. Gets the qualified name of the node. For XmlWhitespace nodes, this property returns #whitespace. Gets the type of the node. For XmlWhitespace nodes, the value is . Gets the parent of the current node. The parent node of the current node. Gets the text node that immediately precedes this node. Returns . Gets or sets the value of the node. The white space characters found in the node. Setting to invalid white space characters. Saves all the children of the node to the specified . The to which you want to save. Saves the node to the specified . The to which you want to save.